<?php
date_default_timezone_set('Asia/Shanghai');
header('content-type:text/html;charset=utf-8');
//定义基本路径
define('APP_ROOT', __DIR__);
define('FRAMEWORK_DIR', APP_ROOT . DIRECTORY_SEPARATOR . 'framework' . DIRECTORY_SEPARATOR);
//加载框架入口

require_once(FRAMEWORK_DIR . 'App.php');

$params = $_GET ? $_GET : array();

$app = new \framework\App();
$result = $app->run($params);
echo json_encode($result);
